package br.com.absolutech.study.chapter7;

/**
 * 
 * @author romulo.freitas
 *
 */
public class TesteHash {

	private int at1;

	private int at2;

	private long at3;

	/**
	 * hashCode implemented by eclipse
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + at1;
		result = prime * result + at2;
		result = prime * result + (int) (at3 ^ (at3 >>> 32));
		return result;
	}

	/**
	 * equals implemented by eclipse
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TesteHash other = (TesteHash) obj;
		if (at1 != other.at1)
			return false;
		if (at2 != other.at2)
			return false;
		if (at3 != other.at3)
			return false;
		return true;
	}


}
